import routes from './router.config';

export default {
  treeShaking: true,
  targets: {
    ie: 10
  },
  history: 'hash',
  plugins: [
    // ref: https://umijs.org/plugin/umi-plugin-react.html
    ['umi-plugin-react', {
      antd: true,
      dva: {
        hmr: true
      },
      dynamicImport: true,
      title: 'React版ui界面',
      dll: true,
      
      routes: {
        exclude: [
          /models\//,
          /services\//,
          /model\.(t|j)sx?$/,
          /service\.(t|j)sx?$/,
          /components\//,
        ],
      },
    }],
  ],
  publicPath: '/assets/',
  routes,
  proxy: [{
    "target": "http://localhost:9001",
    "context": ['/api', '/file'],
    "changeOrigin": true
  }],
  // cssModulesExcludes: [
  //   'src\\components\\PageLoading\\index.less'
  // ],
  // devtool: 'source-map'
}
